<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>png++: png::basic_pixel_buffer&lt; pixel, row, traits &gt; Class Template Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">png++
   &#160;<span id="projectnumber">0.2.1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespacepng.html">png</a>      </li>
      <li class="navelem"><a class="el" href="classpng_1_1basic__pixel__buffer.html">basic_pixel_buffer</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-types">Protected Types</a> &#124;
<a href="#pro-attribs">Protected Attributes</a>  </div>
  <div class="headertitle">
<div class="title">png::basic_pixel_buffer&lt; pixel, row, traits &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="png::basic_pixel_buffer" -->
<p>The basic class template to represent image pixel data.  
 <a href="classpng_1_1basic__pixel__buffer.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="pixel__buffer_8hpp_source.html">pixel_buffer.hpp</a>&gt;</code></p>

<p><a href="classpng_1_1basic__pixel__buffer-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef row&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpng_1_1basic__pixel__buffer.html#a9f613598fdbb2097bb6e2106430a3fcf">row_type</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">A row of pixel data.  <a href="#a9f613598fdbb2097bb6e2106430a3fcf"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef traits&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpng_1_1basic__pixel__buffer.html#a6ec7bb7770cfcf6c6327647536ace0bb">row_traits</a></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpng_1_1basic__pixel__buffer.html#a9505d0a3979d58e6098ee06699d008a3">basic_pixel_buffer</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs an empty 0x0 pixel buffer object.  <a href="#a9505d0a3979d58e6098ee06699d008a3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpng_1_1basic__pixel__buffer.html#a69f4e7a246f7992ff024e209b0e59030">basic_pixel_buffer</a> (size_t width, size_t height)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs an empty pixel buffer object.  <a href="#a69f4e7a246f7992ff024e209b0e59030"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpng_1_1basic__pixel__buffer.html#a08653f32687d377b91c44848f7a4a7e5">get_width</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpng_1_1basic__pixel__buffer.html#ac358ea2cde969c8a356983dd0e00d84d">get_height</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpng_1_1basic__pixel__buffer.html#a24464e17d19d43102b4ea1ba1e8f75d2">resize</a> (size_t width, size_t height)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Resizes the pixel buffer.  <a href="#a24464e17d19d43102b4ea1ba1e8f75d2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classpng_1_1basic__pixel__buffer.html#a9f613598fdbb2097bb6e2106430a3fcf">row_type</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpng_1_1basic__pixel__buffer.html#a4ecc5f4afb12d5d07b8df2d77707e6b2">get_row</a> (size_t index)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a reference to the row of image data at specified index.  <a href="#a4ecc5f4afb12d5d07b8df2d77707e6b2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classpng_1_1basic__pixel__buffer.html#a9f613598fdbb2097bb6e2106430a3fcf">row_type</a> const &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpng_1_1basic__pixel__buffer.html#a574c8e34ad45d5c8da882226d345663a">get_row</a> (size_t index) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a const reference to the row of image data at specified index.  <a href="#a574c8e34ad45d5c8da882226d345663a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classpng_1_1basic__pixel__buffer.html#a9f613598fdbb2097bb6e2106430a3fcf">row_type</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpng_1_1basic__pixel__buffer.html#ab4fdc263c1db7bcb67487004f1d09962">operator[]</a> (size_t index)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The non-checking version of <a class="el" href="classpng_1_1basic__pixel__buffer.html#a4ecc5f4afb12d5d07b8df2d77707e6b2" title="Returns a reference to the row of image data at specified index.">get_row()</a> method.  <a href="#ab4fdc263c1db7bcb67487004f1d09962"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classpng_1_1basic__pixel__buffer.html#a9f613598fdbb2097bb6e2106430a3fcf">row_type</a> const &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpng_1_1basic__pixel__buffer.html#ac03b48308117305c4bda0ee33e6c1fda">operator[]</a> (size_t index) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The non-checking version of <a class="el" href="classpng_1_1basic__pixel__buffer.html#a4ecc5f4afb12d5d07b8df2d77707e6b2" title="Returns a reference to the row of image data at specified index.">get_row()</a> method.  <a href="#ac03b48308117305c4bda0ee33e6c1fda"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpng_1_1basic__pixel__buffer.html#a8ab920a182c081600aaca81a7e889d6f">put_row</a> (size_t index, <a class="el" href="classpng_1_1basic__pixel__buffer.html#a9f613598fdbb2097bb6e2106430a3fcf">row_type</a> const &amp;r)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Replaces the row at specified index.  <a href="#a8ab920a182c081600aaca81a7e889d6f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">pixel&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpng_1_1basic__pixel__buffer.html#a066630b24578f29cc9f380b026fe4a66">get_pixel</a> (size_t x, size_t y) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a pixel at (x,y) position.  <a href="#a066630b24578f29cc9f380b026fe4a66"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpng_1_1basic__pixel__buffer.html#a66bcef0d0f879c0c2cba962fff72f935">set_pixel</a> (size_t x, size_t y, pixel p)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Replaces a pixel at (x,y) position.  <a href="#a66bcef0d0f879c0c2cba962fff72f935"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-types"></a>
Protected Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef std::vector&lt; <a class="el" href="classpng_1_1basic__pixel__buffer.html#a9f613598fdbb2097bb6e2106430a3fcf">row_type</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpng_1_1basic__pixel__buffer.html#a2bf3f5de8ee32110b4bad6706f1aaebd">row_vec</a></td></tr>
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpng_1_1basic__pixel__buffer.html#a993f85bf0369c9b0890ddac71c43b182">m_width</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpng_1_1basic__pixel__buffer.html#a2ff9bf219d10a34be11bb2310646db4d">m_height</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classpng_1_1basic__pixel__buffer.html#a2bf3f5de8ee32110b4bad6706f1aaebd">row_vec</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpng_1_1basic__pixel__buffer.html#a88281bf95ea7868bdea9104de64f83fe">m_rows</a></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename pixel, typename row, class traits = row_traits&lt; row &gt;&gt;<br/>
class png::basic_pixel_buffer&lt; pixel, row, traits &gt;</h3>

<p>The basic class template to represent image pixel data. </p>
</div><hr/><h2>Member Typedef Documentation</h2>
<a class="anchor" id="a9f613598fdbb2097bb6e2106430a3fcf"></a><!-- doxytag: member="png::basic_pixel_buffer::row_type" ref="a9f613598fdbb2097bb6e2106430a3fcf" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename pixel, typename row, class traits = row_traits&lt; row &gt;&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef row <a class="el" href="classpng_1_1basic__pixel__buffer.html">png::basic_pixel_buffer</a>&lt; pixel, row, traits &gt;::<a class="el" href="classpng_1_1basic__pixel__buffer.html#a9f613598fdbb2097bb6e2106430a3fcf">row_type</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A row of pixel data. </p>

</div>
</div>
<a class="anchor" id="a6ec7bb7770cfcf6c6327647536ace0bb"></a><!-- doxytag: member="png::basic_pixel_buffer::row_traits" ref="a6ec7bb7770cfcf6c6327647536ace0bb" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename pixel, typename row, class traits = row_traits&lt; row &gt;&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef traits <a class="el" href="classpng_1_1basic__pixel__buffer.html">png::basic_pixel_buffer</a>&lt; pixel, row, traits &gt;::<a class="el" href="classpng_1_1basic__pixel__buffer.html#a6ec7bb7770cfcf6c6327647536ace0bb">row_traits</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a2bf3f5de8ee32110b4bad6706f1aaebd"></a><!-- doxytag: member="png::basic_pixel_buffer::row_vec" ref="a2bf3f5de8ee32110b4bad6706f1aaebd" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename pixel, typename row, class traits = row_traits&lt; row &gt;&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef std::vector&lt; <a class="el" href="classpng_1_1basic__pixel__buffer.html#a9f613598fdbb2097bb6e2106430a3fcf">row_type</a> &gt; <a class="el" href="classpng_1_1basic__pixel__buffer.html">png::basic_pixel_buffer</a>&lt; pixel, row, traits &gt;::<a class="el" href="classpng_1_1basic__pixel__buffer.html#a2bf3f5de8ee32110b4bad6706f1aaebd">row_vec</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a9505d0a3979d58e6098ee06699d008a3"></a><!-- doxytag: member="png::basic_pixel_buffer::basic_pixel_buffer" ref="a9505d0a3979d58e6098ee06699d008a3" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename pixel, typename row, class traits = row_traits&lt; row &gt;&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classpng_1_1basic__pixel__buffer.html">png::basic_pixel_buffer</a>&lt; pixel, row, traits &gt;::<a class="el" href="classpng_1_1basic__pixel__buffer.html">basic_pixel_buffer</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs an empty 0x0 pixel buffer object. </p>

</div>
</div>
<a class="anchor" id="a69f4e7a246f7992ff024e209b0e59030"></a><!-- doxytag: member="png::basic_pixel_buffer::basic_pixel_buffer" ref="a69f4e7a246f7992ff024e209b0e59030" args="(size_t width, size_t height)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename pixel, typename row, class traits = row_traits&lt; row &gt;&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classpng_1_1basic__pixel__buffer.html">png::basic_pixel_buffer</a>&lt; pixel, row, traits &gt;::<a class="el" href="classpng_1_1basic__pixel__buffer.html">basic_pixel_buffer</a> </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs an empty pixel buffer object. </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a08653f32687d377b91c44848f7a4a7e5"></a><!-- doxytag: member="png::basic_pixel_buffer::get_width" ref="a08653f32687d377b91c44848f7a4a7e5" args="() const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename pixel, typename row, class traits = row_traits&lt; row &gt;&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">size_t <a class="el" href="classpng_1_1basic__pixel__buffer.html">png::basic_pixel_buffer</a>&lt; pixel, row, traits &gt;::<a class="el" href="classpng_1_1basic__pixel__buffer.html#a08653f32687d377b91c44848f7a4a7e5">get_width</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Referenced by <a class="el" href="classpng_1_1image.html#a381477824c5c49c922abf7a050b4a7f3">png::image&lt; pixel &gt;::get_width()</a>.</p>

</div>
</div>
<a class="anchor" id="ac358ea2cde969c8a356983dd0e00d84d"></a><!-- doxytag: member="png::basic_pixel_buffer::get_height" ref="ac358ea2cde969c8a356983dd0e00d84d" args="() const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename pixel, typename row, class traits = row_traits&lt; row &gt;&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">size_t <a class="el" href="classpng_1_1basic__pixel__buffer.html">png::basic_pixel_buffer</a>&lt; pixel, row, traits &gt;::<a class="el" href="classpng_1_1basic__pixel__buffer.html#ac358ea2cde969c8a356983dd0e00d84d">get_height</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Referenced by <a class="el" href="classpng_1_1image.html#a2b7a1e585b83533491dca1437072d7c6">png::image&lt; pixel &gt;::get_height()</a>.</p>

</div>
</div>
<a class="anchor" id="a24464e17d19d43102b4ea1ba1e8f75d2"></a><!-- doxytag: member="png::basic_pixel_buffer::resize" ref="a24464e17d19d43102b4ea1ba1e8f75d2" args="(size_t width, size_t height)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename pixel, typename row, class traits = row_traits&lt; row &gt;&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpng_1_1basic__pixel__buffer.html">png::basic_pixel_buffer</a>&lt; pixel, row, traits &gt;::<a class="el" href="classpng_1_1basic__pixel__buffer.html#a24464e17d19d43102b4ea1ba1e8f75d2">resize</a> </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Resizes the pixel buffer. </p>
<p>If new width or height is greater than the original, expanded pixels are filled with value of <em>pixel()</em>. </p>

<p>Referenced by <a class="el" href="classpng_1_1basic__pixel__buffer.html#a69f4e7a246f7992ff024e209b0e59030">png::basic_pixel_buffer&lt; packed_index_pixel&lt; bits &gt;, packed_pixel_row&lt; packed_index_pixel&lt; bits &gt; &gt; &gt;::basic_pixel_buffer()</a>, <a class="el" href="classpng_1_1image_1_1pixel__consumer.html#a99fe77d0a8fb981e3b92280065dc0b69">png::image&lt; pixel &gt;::pixel_consumer::reset()</a>, and <a class="el" href="classpng_1_1image.html#a1438f7509e906edf364ec5d4d31ece0d">png::image&lt; pixel &gt;::resize()</a>.</p>

</div>
</div>
<a class="anchor" id="a4ecc5f4afb12d5d07b8df2d77707e6b2"></a><!-- doxytag: member="png::basic_pixel_buffer::get_row" ref="a4ecc5f4afb12d5d07b8df2d77707e6b2" args="(size_t index)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename pixel, typename row, class traits = row_traits&lt; row &gt;&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classpng_1_1basic__pixel__buffer.html#a9f613598fdbb2097bb6e2106430a3fcf">row_type</a>&amp; <a class="el" href="classpng_1_1basic__pixel__buffer.html">png::basic_pixel_buffer</a>&lt; pixel, row, traits &gt;::<a class="el" href="classpng_1_1basic__pixel__buffer.html#a4ecc5f4afb12d5d07b8df2d77707e6b2">get_row</a> </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns a reference to the row of image data at specified index. </p>
<p>Checks the index before returning a row: an instance of std::out_of_range is thrown if <code>index</code> is greater than <code>height</code>. </p>

<p>Referenced by <a class="el" href="classpng_1_1image_1_1streaming__impl.html#afadbec0efd903bef032b1736c459b548">png::image&lt; pixel &gt;::streaming_impl&lt; generator&lt; pixel, pixel_generator, image_info_ref_holder, true &gt; &gt;::get_next_row()</a>, <a class="el" href="classpng_1_1basic__pixel__buffer.html#a066630b24578f29cc9f380b026fe4a66">png::basic_pixel_buffer&lt; packed_index_pixel&lt; bits &gt;, packed_pixel_row&lt; packed_index_pixel&lt; bits &gt; &gt; &gt;::get_pixel()</a>, <a class="el" href="classpng_1_1image.html#a8acc236d81f4d3e799a6d14eab0df297">png::image&lt; pixel &gt;::get_row()</a>, and <a class="el" href="classpng_1_1basic__pixel__buffer.html#a66bcef0d0f879c0c2cba962fff72f935">png::basic_pixel_buffer&lt; packed_index_pixel&lt; bits &gt;, packed_pixel_row&lt; packed_index_pixel&lt; bits &gt; &gt; &gt;::set_pixel()</a>.</p>

</div>
</div>
<a class="anchor" id="a574c8e34ad45d5c8da882226d345663a"></a><!-- doxytag: member="png::basic_pixel_buffer::get_row" ref="a574c8e34ad45d5c8da882226d345663a" args="(size_t index) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename pixel, typename row, class traits = row_traits&lt; row &gt;&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classpng_1_1basic__pixel__buffer.html#a9f613598fdbb2097bb6e2106430a3fcf">row_type</a> const&amp; <a class="el" href="classpng_1_1basic__pixel__buffer.html">png::basic_pixel_buffer</a>&lt; pixel, row, traits &gt;::<a class="el" href="classpng_1_1basic__pixel__buffer.html#a4ecc5f4afb12d5d07b8df2d77707e6b2">get_row</a> </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns a const reference to the row of image data at specified index. </p>
<p>The checking version. </p>

</div>
</div>
<a class="anchor" id="ab4fdc263c1db7bcb67487004f1d09962"></a><!-- doxytag: member="png::basic_pixel_buffer::operator[]" ref="ab4fdc263c1db7bcb67487004f1d09962" args="(size_t index)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename pixel, typename row, class traits = row_traits&lt; row &gt;&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classpng_1_1basic__pixel__buffer.html#a9f613598fdbb2097bb6e2106430a3fcf">row_type</a>&amp; <a class="el" href="classpng_1_1basic__pixel__buffer.html">png::basic_pixel_buffer</a>&lt; pixel, row, traits &gt;::operator[] </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The non-checking version of <a class="el" href="classpng_1_1basic__pixel__buffer.html#a4ecc5f4afb12d5d07b8df2d77707e6b2" title="Returns a reference to the row of image data at specified index.">get_row()</a> method. </p>

</div>
</div>
<a class="anchor" id="ac03b48308117305c4bda0ee33e6c1fda"></a><!-- doxytag: member="png::basic_pixel_buffer::operator[]" ref="ac03b48308117305c4bda0ee33e6c1fda" args="(size_t index) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename pixel, typename row, class traits = row_traits&lt; row &gt;&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classpng_1_1basic__pixel__buffer.html#a9f613598fdbb2097bb6e2106430a3fcf">row_type</a> const&amp; <a class="el" href="classpng_1_1basic__pixel__buffer.html">png::basic_pixel_buffer</a>&lt; pixel, row, traits &gt;::operator[] </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The non-checking version of <a class="el" href="classpng_1_1basic__pixel__buffer.html#a4ecc5f4afb12d5d07b8df2d77707e6b2" title="Returns a reference to the row of image data at specified index.">get_row()</a> method. </p>

</div>
</div>
<a class="anchor" id="a8ab920a182c081600aaca81a7e889d6f"></a><!-- doxytag: member="png::basic_pixel_buffer::put_row" ref="a8ab920a182c081600aaca81a7e889d6f" args="(size_t index, row_type const &amp;r)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename pixel, typename row, class traits = row_traits&lt; row &gt;&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpng_1_1basic__pixel__buffer.html">png::basic_pixel_buffer</a>&lt; pixel, row, traits &gt;::<a class="el" href="classpng_1_1basic__pixel__buffer.html#a8ab920a182c081600aaca81a7e889d6f">put_row</a> </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classpng_1_1basic__pixel__buffer.html#a9f613598fdbb2097bb6e2106430a3fcf">row_type</a> const &amp;&#160;</td>
          <td class="paramname"><em>r</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Replaces the row at specified index. </p>

</div>
</div>
<a class="anchor" id="a066630b24578f29cc9f380b026fe4a66"></a><!-- doxytag: member="png::basic_pixel_buffer::get_pixel" ref="a066630b24578f29cc9f380b026fe4a66" args="(size_t x, size_t y) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename pixel, typename row, class traits = row_traits&lt; row &gt;&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">pixel <a class="el" href="classpng_1_1basic__pixel__buffer.html">png::basic_pixel_buffer</a>&lt; pixel, row, traits &gt;::<a class="el" href="classpng_1_1basic__pixel__buffer.html#a066630b24578f29cc9f380b026fe4a66">get_pixel</a> </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns a pixel at (x,y) position. </p>

<p>Referenced by <a class="el" href="classpng_1_1image.html#abe6726a735ac814dc7ca29fec0c2b914">png::image&lt; pixel &gt;::get_pixel()</a>.</p>

</div>
</div>
<a class="anchor" id="a66bcef0d0f879c0c2cba962fff72f935"></a><!-- doxytag: member="png::basic_pixel_buffer::set_pixel" ref="a66bcef0d0f879c0c2cba962fff72f935" args="(size_t x, size_t y, pixel p)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename pixel, typename row, class traits = row_traits&lt; row &gt;&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpng_1_1basic__pixel__buffer.html">png::basic_pixel_buffer</a>&lt; pixel, row, traits &gt;::<a class="el" href="classpng_1_1basic__pixel__buffer.html#a66bcef0d0f879c0c2cba962fff72f935">set_pixel</a> </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">pixel&#160;</td>
          <td class="paramname"><em>p</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Replaces a pixel at (x,y) position. </p>

<p>Referenced by <a class="el" href="classpng_1_1image.html#a4d227ed87e003931410b487ac5d54388">png::image&lt; pixel &gt;::set_pixel()</a>.</p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a993f85bf0369c9b0890ddac71c43b182"></a><!-- doxytag: member="png::basic_pixel_buffer::m_width" ref="a993f85bf0369c9b0890ddac71c43b182" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename pixel, typename row, class traits = row_traits&lt; row &gt;&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">size_t <a class="el" href="classpng_1_1basic__pixel__buffer.html">png::basic_pixel_buffer</a>&lt; pixel, row, traits &gt;::<a class="el" href="classpng_1_1basic__pixel__buffer.html#a993f85bf0369c9b0890ddac71c43b182">m_width</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Referenced by <a class="el" href="classpng_1_1basic__pixel__buffer.html#a08653f32687d377b91c44848f7a4a7e5">png::basic_pixel_buffer&lt; packed_index_pixel&lt; bits &gt;, packed_pixel_row&lt; packed_index_pixel&lt; bits &gt; &gt; &gt;::get_width()</a>, <a class="el" href="classpng_1_1basic__pixel__buffer.html#a8ab920a182c081600aaca81a7e889d6f">png::basic_pixel_buffer&lt; packed_index_pixel&lt; bits &gt;, packed_pixel_row&lt; packed_index_pixel&lt; bits &gt; &gt; &gt;::put_row()</a>, and <a class="el" href="classpng_1_1basic__pixel__buffer.html#a24464e17d19d43102b4ea1ba1e8f75d2">png::basic_pixel_buffer&lt; packed_index_pixel&lt; bits &gt;, packed_pixel_row&lt; packed_index_pixel&lt; bits &gt; &gt; &gt;::resize()</a>.</p>

</div>
</div>
<a class="anchor" id="a2ff9bf219d10a34be11bb2310646db4d"></a><!-- doxytag: member="png::basic_pixel_buffer::m_height" ref="a2ff9bf219d10a34be11bb2310646db4d" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename pixel, typename row, class traits = row_traits&lt; row &gt;&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">size_t <a class="el" href="classpng_1_1basic__pixel__buffer.html">png::basic_pixel_buffer</a>&lt; pixel, row, traits &gt;::<a class="el" href="classpng_1_1basic__pixel__buffer.html#a2ff9bf219d10a34be11bb2310646db4d">m_height</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Referenced by <a class="el" href="classpng_1_1basic__pixel__buffer.html#ac358ea2cde969c8a356983dd0e00d84d">png::basic_pixel_buffer&lt; packed_index_pixel&lt; bits &gt;, packed_pixel_row&lt; packed_index_pixel&lt; bits &gt; &gt; &gt;::get_height()</a>, and <a class="el" href="classpng_1_1basic__pixel__buffer.html#a24464e17d19d43102b4ea1ba1e8f75d2">png::basic_pixel_buffer&lt; packed_index_pixel&lt; bits &gt;, packed_pixel_row&lt; packed_index_pixel&lt; bits &gt; &gt; &gt;::resize()</a>.</p>

</div>
</div>
<a class="anchor" id="a88281bf95ea7868bdea9104de64f83fe"></a><!-- doxytag: member="png::basic_pixel_buffer::m_rows" ref="a88281bf95ea7868bdea9104de64f83fe" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename pixel, typename row, class traits = row_traits&lt; row &gt;&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classpng_1_1basic__pixel__buffer.html#a2bf3f5de8ee32110b4bad6706f1aaebd">row_vec</a> <a class="el" href="classpng_1_1basic__pixel__buffer.html">png::basic_pixel_buffer</a>&lt; pixel, row, traits &gt;::<a class="el" href="classpng_1_1basic__pixel__buffer.html#a88281bf95ea7868bdea9104de64f83fe">m_rows</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Referenced by <a class="el" href="classpng_1_1basic__pixel__buffer.html#a4ecc5f4afb12d5d07b8df2d77707e6b2">png::basic_pixel_buffer&lt; packed_index_pixel&lt; bits &gt;, packed_pixel_row&lt; packed_index_pixel&lt; bits &gt; &gt; &gt;::get_row()</a>, <a class="el" href="classpng_1_1basic__pixel__buffer.html#ab4fdc263c1db7bcb67487004f1d09962">png::basic_pixel_buffer&lt; packed_index_pixel&lt; bits &gt;, packed_pixel_row&lt; packed_index_pixel&lt; bits &gt; &gt; &gt;::operator[]()</a>, <a class="el" href="classpng_1_1basic__pixel__buffer.html#a8ab920a182c081600aaca81a7e889d6f">png::basic_pixel_buffer&lt; packed_index_pixel&lt; bits &gt;, packed_pixel_row&lt; packed_index_pixel&lt; bits &gt; &gt; &gt;::put_row()</a>, and <a class="el" href="classpng_1_1basic__pixel__buffer.html#a24464e17d19d43102b4ea1ba1e8f75d2">png::basic_pixel_buffer&lt; packed_index_pixel&lt; bits &gt;, packed_pixel_row&lt; packed_index_pixel&lt; bits &gt; &gt; &gt;::resize()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="pixel__buffer_8hpp_source.html">pixel_buffer.hpp</a></li>
</ul>
</div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Fri Jan 25 2013 14:10:10 for png++ by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
